﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Spring Security Example </title>
</head>
<body>
<div th:text="${error}" style="color:red">
    Invalid username and password.
</div>

<form th:action="${base.getLoginProcessUrl()}+'?type=base'" method="post">
    <div><label> User Name : <input type="text" th:value="${username}" th:attr="name=${base.getUsernameParameterName()}"/> </label></div>
    <div><label> Password: <input type="password" th:value="${password}"  th:attr="name=${base.getPasswordParameterName()}" name="password"/> </label></div>
    <div><input type="submit" value="Sign In"/></div>
</form>
</body>
</html>
